import server from "~/axios"


export const getlogin = data => server({
    url: `/login/cellphone?phone=${data.phone}&password=${data.password}&`,
    method: "get",
})
export const getinfo = data => server({
    url: `/user/detail?uid=${data}?`,
    method: "get",
})
//二维码 key 生成接口
export const getkey = () => server({
    url: `/login/qr/key?`,
    method: "get",
})
// 二维码生成接口
export const getcode = key => server({
    url: `/login/qr/create?key=${key}&qrimg=${true}&`,
    method: "get",
})
//3. 二维码检测扫码状态接口
export const getcheck = key => server({
    url: `/login/qr/check?key=${key}&`,
    method: "get",
})
//获取登录状态
export const getstatus = () => server({
    url: `/login/status?`,
    method: "get",
})
//退出登录
export const signOut = () => server({
    url: `/logout?`,
    method: "get",
})